package cn.clx.ymcc.feign;

import cn.clx.ymcc.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value="service-user",fallbackFactory = UserFeignClientFactory.class)
public interface UserFeign {

    @PostMapping("/user")
    User getByPhone(@RequestParam("phone") String phone);


}